public class Test5 {
    public static void main(String[] args) {
        String phoneNumber="15697850108";
        String str1=phoneNumber.substring(0,3);
        System.out.println(str1);
        String str2=phoneNumber.substring(7);
        System.out.println(str2);
        String id="420099902938364234";
        String year=id.substring(6,10);
        String month=id.substring(10,12);
        String day=id.substring(12,14);
        System.out.println(year+","+month+","+day);

        int num=(int)id.charAt(16);


        if(num%2==0)
        {
            System.out.println("性别为；女");

        }
        else{
            System.out.println("性别为;男");

        }
        String talk="呵呵，cnm";
        String str=talk.replace("cnm","***");
        System.out.println(str);

    }
}
